package com.rimi.service;

import com.rimi.bean.Page;
import com.rimi.bean.User;
import com.rimi.bean.Video;
import com.baomidou.mybatisplus.service.IService;
import org.apache.ibatis.annotations.Param;

import java.util.HashMap;
import java.util.List;

/**
 * <p>
 * InnoDB free: 11264 kB; (`user_id`) REFER `owl_video/user`(`user_id`); (`menu_id` 服务类
 * </p>
 *
 * @author sky
 * @since 2018-06-06
 */
public interface VideoService extends IService<Video> {

    Video getVideoById(Integer id);

    //查询视频列表
    List<Video> getVideoList();

    void collectVideo(Integer userId, Integer videoId);


    void hotUp(Video v);

    //查询分页条数
    int selectCount(String name);
    //查询分页对象

    List selectLike(String name,Integer num1);

    //查询video BY video_menu
    List<Video> getVideoByVideoMenu(String video_menu);

    //查询分页条数
    int selectCount1(String name);

    //查询分页对象
    List<Video> selectLike1(String name, Integer num1);

    void addVideoPlayInfo(User user, Integer videoId, String nowTime);

    HashMap<Integer,String> getPlayInfoByIdFromCache(Integer userId);
}
